<?php
include("../safe.php");
$lang=$_GET["lang"];
$bname=$_GET["bname"];
$page=$_GET["page"];
$platform=$_GET["platform"];
if($lang!==''&&isset($lang)){}else{$lang="products";}
$rss="select * from ph_".$lang." where ID='".intval($_GET["id"])."'";
$rsresult=mysqli_query($conn,$rss);
$rsrows=mysqli_fetch_array($rsresult);
$htmlData = $rsrows["content"];
$sqlm="select * from ph_lang order by id asc";
$resultm=mysqli_query($conn,$sqlm);
?> 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title><?php echo $site_name;?>后台管理-批量翻译</title>
<link href="../bootstrap/css/bootstrap.min.css" title="" rel="stylesheet" />
<link href="../css/mcommon.css" rel="stylesheet" title="" type="text/css" />
<link href="../css/style.css" rel="stylesheet" type="text/css"  />
<link rel="shortcut icon" href="/logo.ico" />
</head>

<body>
<!--顶部-->
<?php include("../top.php");?> 
<!--顶部结束--->
<!--主体部分-->
<div class="down-main">
	<!--左侧部分-->
  <?php include("../left.php");?> 
  <!--左侧部分结束-->
  <!--右侧部分-->
  <div class="right-product right-full">
  	<!--右侧内容部分-->
    <div class="container-fluid right-product-con">
    	<div class="mianbaoxie"><i class="glyphicon-folder-open glyphicon"></i>
    		<span>管理中心</span>&gt;<span>产品管理</span>&gt;<span><?php echo $_GET["bname"];?></span>&gt;<span class="dangqian">批量翻译</span></div>
      <div class="container-con">
      		<!--表格-->
      		<div class="tableCon">
			<div class="tableCon-tit clear">批量翻译</div>
	      		<div class="tableCon-content">
				<table width="98%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" class="wenzi">
    <form action="fanyi_save.php?id=<?php echo $rsrows["ID"];?>&page=<?php echo $page;?>&platform=<?php echo $platform;?>" method="post" enctype="multipart/form-data" name="myform" id="myform" class="form-inline">
      
      <tr>
        <td width="10%" bgcolor="#F7F7F7"><div align="right">产品名称：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left">
          <input name="proname" type="text" id="proname" value="<?php echo $rsrows["proname"];?>" size="50" class="form-control"/>
        </div></td>
      </tr>
      
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">产品卖点：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left">
          <textarea id="des" name="des" cols="100" rows="5" style="width:100%;" class="form-control"><?php echo $rsrows["sketch"];?></textarea>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">产品keywords：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left">
          <textarea id="keywords" name="keywords" cols="100" rows="5" style="width:100%;" class="form-control"><?php echo $rsrows["keywords"];?></textarea>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">产品说明：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left">
          <textarea id="content" name="content" cols="100" rows="8" style="width:100%;" class="form-control"><?php echo htmlspecialchars($htmlData); ?></textarea>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">目标语言：</div></td>
        <td height="25" bgcolor="#F7F7F7">
				  <?php while($rowm=mysqli_fetch_array($resultm)){?>
					<input name="lang[]" type="checkbox" value="<?php echo $rowm["lanid"];?>" /><?php echo $rowm["lang"];?> 
					<?php }?>        <input name="ylang" type="hidden" id="ylang" value="<?php echo $lang;?>" /></td>
      </tr>
      
      
      <tr>
        <td bgcolor="#F7F7F7"><div align="right"></div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left">
            <input type="submit" class="btn btn-success" value="确定保存"/>
            <a class="btn btn-info" role="button" href="productslist.php?bname=<?php echo $bname;?>&lang=<?php echo $lang;?>&page=<?php echo $page;?>&platform=<?php echo $platform;?>">返回列表</a></div></td>
      </tr>
    </form>
  </table>
	      		</div>
	      	</div>
	      	<!--表格结束--->
      	</div>
      </div>
  </div>
	  <!--右侧内容部分结束-->
  </div>
  <!--右侧部分结束-->
</div>
<!--主体部分结束-->
<script src="../js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="../bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../js/mcommon.js"></script>
</body>
</html>
